package com.mvvm.library.base;

import androidx.annotation.NonNull;
import androidx.databinding.ViewDataBinding;
import androidx.recyclerview.widget.RecyclerView;

/**
 * @创建时间：2023/2/27
 * @作者：小蔡
 * @功能介绍：
 */
public class BaseDataViewHolder<T extends ViewDataBinding> extends RecyclerView.ViewHolder {

    private final T binding;

    BaseDataViewHolder(@NonNull T binding) {
        super(binding.getRoot());
        this.binding = binding;
    }

    public T getBinding() {
        return binding;
    }
}
